package com.bis.ymyy.service;

import com.bis.ymyy.entity.Appointment;

import java.sql.Date;
import java.util.List;

public interface AppointmentService {
    // 预约
    int addOne(Appointment appointment);

    // 取消预约
    int cancelOne(String userName);

    // 查询所有预约
    List<Appointment> findAll();

    // 根据日期查询预约
    List<Appointment> findByDate(Date date);

    // 根据用户名查询预约
    Appointment findByUserName(String userName);

    // 修改预约
    int modifyAppointment(Appointment appointment);
}
